find_package(Qt6 REQUIRED COMPONENTS Widgets)

add_executable(XViewer xviewer.cpp xviewer.h main.cpp
    image.qrc
    xviewer.ui xcamera_config.cpp xcamera_config.h
    xcamera_widget.h xcamera_widget.cpp 
    xcamera_record.h xcamera_record.cpp
    xcalendar.h xcalendar.cpp
    xplayvideo.h xplayvideo.cpp xplayvideo.ui)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../xcodec/ .)
target_link_libraries(XViewer Qt6::Core Qt6::Gui Qt6::Widgets XCodec avutil)
set_out_path(XViewer)
set_runtime_name(XViewer)
